package com.fz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fz.entity.ParkingSpace;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 存储车位及绑定用户信息 服务类
 * </p>
 *
 * @author hyr
 * @since 2025-06-18
 */
public interface ParkingSpaceService extends IService<ParkingSpace> {
    Boolean reject(Long id, Integer status);

    Boolean pass(Long id, Integer status);


    Boolean check(String field, String value);

    Boolean del(Long id);

    Boolean update(Long id, String carNumber, String username, Integer occupied);


    Page<ParkingSpace> showList2(Integer pageNo, Integer pageSize);

    // 不分页查询 - 用于统计
    List<ParkingSpace> showList();

    Page<ParkingSpace> search(String input, Integer pageNo, Integer pageSize);



    Integer park(String input);
}
